/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package generatorGraphics.softwareControl;

import generatorGraphics.graphicsCategory.Congestion;
import generatorGraphics.graphicsCategory.Custom;
import generatorGraphics.graphicsCategory.Dependability;
import generatorGraphics.graphicsCategory.EnergyConsumption;
import generatorGraphics.interfaces.JFScreen;
import generatorGraphics.interfaces.JPCategory;

/**
 *
 * @author Heitor
 */
public class GeneratorGraphics {
    
    /** Componentes gráficos */
    private JFScreen screenMain;
    private JPCategory jpCat; 
    
    public GeneratorGraphics(){
        
        screenMain = new JFScreen();
        
        managerCategory();
        screenMain.setVisible(true);
    }
    
    /**
     * Criação e classificação das categorias
     */
    private void managerCategory(){
        
        jpCat = screenMain.getJpCategory();
        
//        Congestion congestionCat = new Congestion();
//        Custom customCat = new Custom();
//        EnergyConsumption energyCat = new EnergyConsumption();
//        Dependability dependabilityCat = new Dependability();
//        
//        jpCat.addCategory(congestionCat);
//        jpCat.addCategory(customCat);
//        jpCat.addCategory(energyCat);
//        jpCat.addCategory(dependabilityCat);
        
        screenMain.setJpCategory(jpCat);
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        GeneratorGraphics main = new GeneratorGraphics();
        
    }
}
